package com.pomr.service.sys;

import com.pomr.entity.RoleParam;
import com.pomr.model.sys.Effect;
import com.pomr.model.sys.Role;
import com.pomr.util.common.ResponseData;
import com.pomr.util.page.Page;
import com.pomr.util.page.PageParam;

import java.util.List;

/**
 * @作者：Administrator
 * @时间：1:34 2018/9/6 0006
 * @用途：
 **/
public interface RoleService {
    /**
     * 获取角色信息-分页
     * @return
     * @throws Exception
     */
    public Page<List<Role>> searchAllRoles(PageParam pageParam) throws Exception;

    public Page<List<Role>> searchRolesLikeName(PageParam pageParam) throws Exception;

    public List<Effect> searchEffects() throws Exception;

    public boolean insertRole(RoleParam roleParam) throws Exception;

    public boolean deleteRoles(String[] ids) throws Exception;

    public ResponseData seachRoleById(String id) throws Exception;

    public ResponseData editRole(RoleParam roleParam) throws Exception;
}
